/**
 * Created by Freeman on 2017/12/27.
 */
import React from 'react'
import {View} from 'react-native'
import PropTypes from 'prop-types'
import variables from '../variables'

const WhiteSpace = ({size, style}) => {

  return (
    <View style={[{height: variables[`v_spacing_${size}`]}, style]}/>
  )
}

WhiteSpace.propTypes = {
  size: PropTypes.oneOf(['sm', 'md', 'lg']),
  style: PropTypes.object,
};

WhiteSpace.defaultProps = {
  size: 'md',
};

export default WhiteSpace
